﻿using Simple.Tools.SnowFlake;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Entity.Entity
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	[SugarTable("t_sys_role")]
	public class SysRoleEntity:WholeEntity<long>
	{
		public SysRoleEntity(bool IsCreate = false)
		{
			if (IsCreate)
			{
				Id = Worker.GetId();
			}
		}

		public SysRoleEntity() : this(false)
		{

		}

		/// <summary>
		/// 角色编号
		/// </summary>
		/// 
		[SugarColumn(ColumnName ="role_code")]
        public int RoleCode { get; set; }
		/// <summary>
		/// 角色名称
		/// </summary>
		[SugarColumn(ColumnName = "role_name")]
		public string RoleName { get; set; }

		/// <summary>
		/// 角色排序
		/// </summary>
		[SugarColumn(ColumnName = "soft")]
		public int Soft { get; set; }

		/// <summary>
		/// 角色排序
		/// </summary>
		[SugarColumn(ColumnName = "role_type")]
		public int RoleType { get; set; }
	}
}
